﻿package java_45;

public class Person {
		String name;
		String mengxiang;
		int age;
		public void show(){
		System.out.println("名字:" + name + "梦想:" + mengxiang + "年龄" + age);
		}
}



package java_45;

public class InitialPerson {
public static void main(String[] args) {
	Person n = new Person();
	n.name="小明";
	n.age=23;
	n.mengxiang="成功";
	n.show();
}
}




